package com.rytx.web.controller.ysp;

import com.rytx.common.core.controller.BaseController;
import com.rytx.system.domain.ArtKd100;
import com.rytx.system.domain.ysp.ArtOrder;
import com.rytx.system.service.IArtKd100Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/system/kd100")
public class ArtKd100Controller extends BaseController {
    @Autowired
    private IArtKd100Service artKd100Service;

    @GetMapping("/listByOrderId/{orderNo}")
    public List<ArtKd100> listByOrderId(@PathVariable("orderNo") String orderNo) {
        ArtOrder artOrder = new ArtOrder();
        artOrder.setOrderNo(orderNo);
        return artKd100Service.listByOrderId(artOrder);
    }
}
